<template>
  <el-dialog v-model="model" @close="closedDialog">
    <proc-inst-diagram
      :proc-inst-id="props.entityKey.procInstId"
    ></proc-inst-diagram>
  </el-dialog>
</template>
<script setup lang="ts">
import { ref, type PropType } from "vue";
import { type FlowProcInstKey } from "@/api/flow/task/types";

const props = defineProps({
  entityKey: {
    type: Object as PropType<FlowProcInstKey>,
    default: () => {},
  },
});

const model = defineModel<boolean>();
// 关闭弹框
function closedDialog() {
  if (model.value) {
    model.value = false;
  }
}
</script>
